package com.springboot.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.xml.ws.RequestWrapper;
import java.util.HashMap;
import java.util.Map;

@Controller
public class IndexController {
    @RequestMapping(value ="/say")
    @ResponseBody
    public String say(){
        return "say:Hello SpringBoot";
    }

    @RequestMapping(value ="/mapvalue")
    public @ResponseBody Map<String,Object> mapvalue(){
        Map<String,Object> retMap =new HashMap<String ,Object>();
        retMap.put("massage","SpingBoot Project");
        return retMap;
    }
}
